package Logica.Core.Producto;

import Logica.Core.Depositos.Lote;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.OneToOne;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Luciano
 */
@MappedSuperclass
public abstract class Producto implements Serializable {

    @Id
    private int id;
    @Basic(optional = false)
    private double peso;
    @OneToOne
    private Lote miLote;

    public Producto() {
    }

    public Producto(int id, double peso, Lote miLote) {
        this.id = id;
        this.peso = peso;
        this.miLote = miLote;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getPeso() {
        return peso;
    }

    public void setPeso(double peso) {
        this.peso = peso;
    }

    public Lote getMiLote() {
        return miLote;
    }

    public void setMiLote(Lote miLote) {
        this.miLote = miLote;
    }
}
